package com.neusoft.mapper;

import com.neusoft.domain.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessDao {
    @Select("select * from business where orderTypeId = #{orderTypeId}")
    List<Business> listBusinessByOrderTypeId(Integer orderTypeId);

    @Select("select * from business where businessId = #{businessId}")
    Business getBusinessById(Integer businessId);
}
